import request from '@/utils/request'

// 新增菜单
export function addMenu(params) {
  return request({
    url: '/menu/insert',
    method: 'get',
    params: params
  })
}

// 删除菜单
export function removeMenu(params) {
  return request({
    url: '/menu/deleteByIds',
    method: 'get',
    params: params
  })
}

// 菜单信息修改
export function updateMenu(params) {
  return request({
    url: '/menu/update',
    method: 'get',
    params: params
  })
}

// 查看菜单信息
export function findMenu(params) {
  return request({
    url: '/menu/selectOne',
    method: 'get',
    params: params
  })
}
